<template>
  <div>
    <div class="placehold"></div>
    <div class="ht-header">
      <div class="back" @click="back">
        <span class="iconfont iconjiantou2"></span>
      </div>
      <div class="title"><slot></slot></div>
      <div class="extra"></div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    back() {
      this.$router.go(-1)
    },
  },
}
</script>

<style lang="less">
.placehold {
  height: 50px;
}
.ht-header {
  height: 50px;
  top: 0;
  border-bottom: 1px solid #ccc;
  display: flex;
  text-align: center;
  line-height: 50px;
  position: fixed;
  width: 100%;
  z-index: 888;
  background-color: #fff;

  .back,
  .extra {
    width: 50px;
  }
  .iconfont {
    font-size: 16px;
  }
  .title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
  }
}
</style>
